<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
  <script src="https://heerey525.github.io/layui-v2.4.3/layui/layui.js"></script>
  <link rel="stylesheet" href="https://heerey525.github.io/layui-v2.4.3/layui/css/layui.css">
  <style>
    html,
    body {
      width: 100%;
      height: 100%;
    }

    .side_left {
      height: 100%;
    }

    .message {
      margin: -8px 28px 0!important;
      border-radius: 50%;
      top: 31%!important;
    }

    .title {
      position: absolute!important;
      top: 0;
      color: rgba(255, 255, 255, .7);
      padding: 0 20px;
      line-height: 60px;
      font-size: 22px;
      font-weight: 600;
    }
    .content {
      top: 60px;
      padding: 5px;
    }
  </style>
</head>
<body>
  <nav class="ayui-layout-admin" style="height:60px;background:#393D49;">
    <h1 class="title">机票数据分析</h1>
  </nav>
  <ul class="layui-nav layui-nav-tree layui-inline side_left">
    <li class="layui-nav-item layui-this">
      <a href="./index.html">
        <i class="iconfont icon-shouye1"></i>
        机场位置分布
      </a>
    </li>
    <li class="layui-nav-item layui-nav-itemed" id="changeToOrder">
      <a href="javascript:;">
        <i class="iconfont icon-shouye1"></i>
        各省市机场排名
      </a>
    </li>
    <li class="layui-nav-item layui-nav-itemed" id="changeToCompany">
      <a href="javascript:;">
        <i class="iconfont icon-shouye1"></i>
        各公司航班数排名
      </a>
    </li>
    <li class="layui-nav-item layui-nav-itemed" id="changeToPrice">
      <a href="javascript:;">
        <i class="iconfont icon-shouye1"></i>
        国内航班价格分布情况
      </a>
    </li>
    <li class="layui-nav-item layui-nav-itemed" id="changeToZh">
      <a href="javascript:;">
        <i class="iconfont icon-shouye1"></i>
        国内航班综合实力排行
      </a>
    </li>
    <li class="layui-nav-item layui-nav-itemed" id="pac">
      <a href="javascript:;">
        <i class="iconfont icon-shouye1"></i>
         PAC分析
      </a>
    </li>
  </ul>
  <div class="layui-body content">
    <iframe src="./main.html" marginWidth=0 marginHeight=0 scrolling="auto" frameborder="0" id="order" style="width: 100%;height: 1000px;"></iframe>
  </div>
</body>
</html>
<script>
  $(function () {
    $('#changeToOrder').on('click', function () {
      $(window.parent.document).find('#order').attr('src', './order.html')
      $(this).addClass('layui-this').siblings().removeClass('layui-this');
    });
    $('#changeToCompany').on('click', function () {
      $(window.parent.document).find('#order').attr('src', './Company.html')
      $(this).addClass('layui-this').siblings().removeClass('layui-this');
    });
    $('#changeToPrice').on('click', function () {
      $(window.parent.document).find('#order').attr('src', './price.html')
      $(this).addClass('layui-this').siblings().removeClass('layui-this');
    });
    $('#changeToZh').on('click', function () {
      $(window.parent.document).find('#order').attr('src', './synthesis.html')
      $(this).addClass('layui-this').siblings().removeClass('layui-this');
    });
     $('#pac').on('click', function () {
      $(window.parent.document).find('#order').attr('src', './pac.html')
      $(this).addClass('layui-this').siblings().removeClass('layui-this');
    });
  })
</script>
<!DOCTYPE html>